home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / HippoDraw / HippoDrawSrc1.1 / Hippo.subproj / InspectData.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-04-25  |  1.8 KB  |  74 lines

  1. /* InspectData.h        by Paul Kunz    December 1991
  2.  * Controls binding of plot axes to ntuple columns.
  3.  * 
  4.  * Copyright (C)  1991  The Board of Trustees of
  5.  * The Leland Stanford Junior University.  All Rights Reserved.
  6.  */
  7.  
  8. #define INSPECTDATA_H_ID "$Id: InspectData.h,v 1.5 1992/03/27 21:32:32 pfkeb Rel $"
  9.  
  10. #import "InspectBase.h"
  11.  
  12. #import <dpsclient/event.h>
  13. #import "hippo.h"
  14.  
  15. @interface InspectData:InspectBase
  16. {
  17.     id  tpBrowser;    /* NXBrowser showing tuple data titles */
  18.     id     tpBrowserCells;
  19.     id  tpAxisForm;    /* Form to hold current axis labels */
  20.     id  tpAxisButtons;    /* Matrix of Buttons to select axis */
  21.     
  22.     ntuple    selectedTuple;    /* current ntuple */
  23.     
  24.     int currentDim;    /* dimension of current plot */
  25.     int tpAxisIndex[5];    /* index into tuple for each axis */
  26.     graphtype_t         graphtype;
  27. }
  28.  
  29. - initInspFor:aDraw;
  30.  /*
  31.   * Initializes inspector for global control object aDraw
  32.   * Adds itself to Inspector Panel when done.
  33.   */
  34.   
  35. - setButtonsAndTitles;
  36.  /*
  37.   * Enables appropriate axis buttons and titles
  38.   */
  39.  
  40. - setTuple:(ntuple) atuple;
  41.   /* Sets the tuple with already prepared display held by this object
  42.    */
  43.  
  44. - showBinding;
  45.  /*
  46.   * Updates inspector view to show bindings of selected plot
  47.   */
  48.  
  49. - tupleAxisChanged:sender;
  50.   /* Responds to change in selected axis by restoring selected cell
  51.    * in tuple Browser */
  52.    
  53. - (int) currentTupleCol;
  54.   /* 
  55.    * Returns current selected n-tuple column from NXBrowser
  56.    */
  57.    
  58. - tupleSetAxisDataDim:sender;
  59.   /* Responds to click in tuple Browser by setting the selected 
  60.    * tuple data dimension to currently selected axis
  61.    */
  62.   
  63. - updateView;
  64.  /*
  65.   * Updates the Inspector's content View.
  66.   */
  67.  
  68. - (int) browser: sender fillMatrix: matrix inColumn: (int) column;
  69.  /* delegate method of NXBrowser.   Will modify matrix and fill it with
  70.   * tuple data 
  71.   */
  72.   
  73. @end
  74.